<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关于我们</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: #f4f4f4;
        }
        header {
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        header h1 {
            margin: 0;
        }
        .back-to-home {
            text-align: left;
            padding: 10px 0;
            background-color: #333;
        }
        .back-to-home a {
            color: white;
            text-decoration: none;
            padding: 5px 15px;
            border-radius: 5px;
        }
        .back-to-home a:hover {
            background-color: #ddd;
            color: black;
        }
        .center {
            width: 80%;
            margin: 30px auto;
            padding: 20px;
            background: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        .contact-list {
            list-style: none;
            padding: 0;
        }
        .contact-list li {
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        .contact-list li:last-child {
            border-bottom: none;
        }
        .contact-list h2 {
            margin: 0 0 5px;
        }
        .contact-list img {
            max-width: 100%;
            height: auto;
            margin-bottom: 10px;
        }
        footer {
            text-align: center;
            padding: 20px 0;
            background-color: #333;
            color: white;
        }
           .logged-in-indicator {
            position: absolute;
            top: 10px; /* 根据header的padding调整 */
            right: 20px; /* 根据需要调整位置 */
            color: #fff;
            background-color: #4CAF50; /* 绿色背景 */
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 14px;
        }
              #username_state{
            font-size: 30px;
            color: black;
            font-family: Arial, sans-serif;
        }
    </style>
</head>
<body>

    <header>
        <h1>关于我们</h1>
            {% if session.get("username") %}
        <div class="logged-in-indicator">用户：<span id="username_state">{{session.get("username")}}</span>，已登录</div>
    {% endif %}
    </header>

    <div class="back-to-home">
        <a href="index.html">返回首页</a>
    </div>

    <div class="center">
        <p>欢迎联系我学习交流：</p>
        <ol class="contact-list">
            <li>
                <h2>微信公众号（有具体学习教程）</h2>
            </li>
            <li>
                <img src="{{ url_for("static",filename="images/contact.png") }}" alt="联系图片">
            </li>
            <li>
                <h2>gittee地址：</h2>
                <a href="https://gitee.com/wang_hua_min">https://gitee.com/wang_hua_min</a>
            </li>
        </ol>
    </div>

    <footer>
        <p>版权所有 &copy; 从0到1创建论坛系统</p>
    </footer>

</body>
</html>